<template>
  <div id="foot">
    <div>
        <span :class="{active:count==index}" @click="font(index)" v-for="(item,index) in title" :key="index">{{item}}</span>
    </div>
  </div>
</template>

<script>
export default {
data(){
    return {
        count:0,
        title:["首页","爆爆团","订单","我的"]
    }
},
methods:{
font(index){
    this.count=index;
}
}
}
</script>

<style lang="scss" scoped>
#app div {
    width: 100%;
    height: 50px;
    display: flex;
    background: #fff;
    border-top: 1px solid #888;
    position: fixed;
    bottom: 0;
}
#app div span{
    flex: 1;
    text-align: center;
    line-height: 50px;
    color: #999;

}
#app div .active {
    font-weight: bold;
    color: skyblue;
}
</style>